package com.jade.store.wechat.entity;

import com.jade.bss.db.IdEntity;

import javax.persistence.*;
/**
 * 微信消息管理
 * User: JinYa 2009_jinya@163.com
 * Date: 2016-4-25
 * Time: 15:01
 * Version : 1.0
 * Remark:
 * History:
 */
@Entity
@Table(name = "STORE_WX_MSG_TEMPLETE")
public class WechatMsgTemplete  extends IdEntity {

    public static int TYPE_NEW_MSG=1;//消息推送模板
    public static int TEYP_MSG_RECHARGE_INPUT=3;//新的充值可用现金模板
    public static int TEYP_MSG_RECHARGE_OUTPUT=5;//可用额度消费模板
    //消息类型
    @Column(name = "type")
    private int type;
    @Column(name = "title", nullable = true, updatable = true)
    private String title;
    @Column(name = "content", nullable = true, updatable = true)
    private String content;
    @Column(name = "remark", nullable = true, updatable = true)
    private String remark;
    public static int DEFAULT_IS_NO=0;//不是默认
    public static int DEFAULT_IS_YES=1;//默认模板
    //消息类型
    @Column(name = "isDefault")
    private int isDefault=DEFAULT_IS_NO;
    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public int getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(int isDefault) {
        this.isDefault = isDefault;
    }
}
